package Comparator;

import java.util.Comparator;

class NameComparator implements Comparator<PersonSortable2>{
	public int compare(PersonSortable2 arg0, PersonSortable2 arg1) {
		return arg0.getName().compareTo(arg1.getName());
	}
}
class AgeComparator implements Comparator<PersonSortable2>{
	public int compare(PersonSortable2 arg0, PersonSortable2 arg1) {
		return arg0.getAge()-arg1.getAge();
	}
}

	

	
